this.BX=this.BX||{};(function(t,e,n){"use strict";var i;function a(t,e){s(t,e);e.add(t)}function s(t,e){if(e.has(t)){throw new TypeError("Cannot initialize the same private elements twice on an object")}}function o(t,e,n){if(!e.has(t)){throw new TypeError("attempted to get private field on non-instance")}return n}var l=new WeakSet;var r=new WeakSet;var u=new WeakSet;var c=function(){function t(i){var s=this;babelHelpers.classCallCheck(this,t);a(this,u);a(this,r);a(this,l);i=e.Type.isPlainObject(i)?i:{};this.target=e.Type.isDomNode(i.target)?i.target:null;var o=e.Type.isArray(i.buttons)?i.buttons:[];this.container=null;this.buttons=[];o.forEach((function(t){if(t instanceof n.Button){s.buttons.push(t)}else if(e.Type.isPlainObject(t)){if(t.splitButton){s.buttons.push(new n.SplitButton(t))}else{s.buttons.push(new n.Button(t))}}}))}babelHelpers.createClass(t,[{key:"collapse",value:function t(){var n=Object.values(o(this,r,p).call(this));for(var i=n.length-1;i>=0;i--){var a=n[i];if(!a.getIcon()&&!e.Type.isStringFilled(a.getDataSet()["buttonCollapsedIcon"])){continue}if(a.isCollapsed()){continue}a.setCollapsed(true);if(!a.getIcon()){a.setIcon(a.getDataSet()["buttonCollapsedIcon"])}break}}},{key:"expand",value:function t(){}},{key:"init",value:function t(){o(this,u,f).call(this)}}]);return t}();function h(){if(!this.container){this.container=e.Tag.render(i||(i=babelHelpers.taggedTemplateLiteral(['\n\t\t\t\t<div class="ui-button-panel__container ui-button-panel__scope"></div>\n\t\t\t'])))}return this.container}function p(){return this.buttons}function f(){var t=this;e.Dom.append(o(this,l,h).call(this),this.target);if(o(this,r,p).call(this).length>0){o(this,r,p).call(this).forEach((function(n){e.Dom.append(n.getContainer(),o(t,l,h).call(t))}))}}t.ButtonsPanel=c})(this.BX.UI=this.BX.UI||{},BX,BX.UI);
//# sourceMappingURL=buttons-panel.bundle.map.js